rem
	bbdoc: RigidBody
end rem
Type TRigidBody
	Field bRigidBody:Byte ptr
	
	Function Create:TRigidBody(bullet:TBullet, typ:Int, mass:Float, playerControlled:Byte, rbsize:bVector3, rbpos:bVector3)
		Local rigidBody:TRigidBody = New TRigidBody
		rigidBody.bRigidBody = _createRigidBody(bullet.bBullet, typ, mass, playerControlled, rbsize.toC(), rbpos.toC())
		
		Return rigidBody
	End Function
	
	Method GetPosition(ref:bVector3)
		_getRigidBodyPosition(Self.bRigidBody, ref.toC())
	End Method
	
	Method SetPosition(x:Float, y:Float, z:Float)
		_setRigidBodyPosition(Self.bRigidBody, bVector3.Create(x, y, z).toC())
	End Method
	
	Method GetRotation(ref:bQuaternion)
		_getRigidBodyRotation(Self.bRigidBody, ref.toC())
	End Method
	
	Method translate(x:Float, y:Float, z:Float)
		_translateRigidBody(Self.bRigidBody, x, y, z)
	End Method
	
	Method userControlledBody()
		_userControlledBody(Self.bRigidBody)
	End Method
	
	Method pitch(x:Float)
		_pitchRigidBody(Self.bRigidBody, x)
	End Method
	
	Method yaw(y:Float)
		_yawRigidBody(Self.bRigidBody, y)
	End Method
	
	Method roll(z:Float)
		_rollRigidBody(self.bRigidBody, z)
	End Method
End Type
